package com.tz.crm.entity.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by wangchunyang on 2017/3/7.
 */
public class UserUpdate {

    String id;
    @NotBlank(message = "工号不能为空")
    String empNo;
    @NotBlank(message = "姓名不能为空")
    String realName;
    @NotBlank(message = "账号不能为空")
    String username;
    String valid;
    String deptId;
    @Pattern(regexp = "^[0-9]*$",message = "客户上限不合法")
    String maxCustomer;
    String gender;
    String birthDate;
    String telephone;
    String remarks;

    public UserUpdate() {

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEmpNo() {
        return empNo;
    }

    public void setEmpNo(String empNo) {
        this.empNo = empNo;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getValid() {
        return valid;
    }

    public void setValid(String valid) {
        this.valid = valid;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getMaxCustomer() {
        return maxCustomer;
    }

    public void setMaxCustomer(String maxCustomer) {
        this.maxCustomer = maxCustomer;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "UserUpdate{" +
                "id='" + id + '\'' +
                ", empNo='" + empNo + '\'' +
                ", realName='" + realName + '\'' +
                ", username='" + username + '\'' +
                ", valid='" + valid + '\'' +
                ", deptId='" + deptId + '\'' +
                ", maxCustomer='" + maxCustomer + '\'' +
                ", gender='" + gender + '\'' +
                ", birthDate='" + birthDate + '\'' +
                ", telephone='" + telephone + '\'' +
                ", remarks='" + remarks + '\'' +
                '}';
    }
}
